﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:Microsoft.Samples.Kinect.WpfViewers;assembly=Microsoft.Samples.Kinect.WpfViewers" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="TSL.MainWindow"
        Title="Thai Sign Language : Recorder Module" Height="607" Width="1024" Loaded="Window_Loaded" Closing="Window_Closing" Background="White" Closed="Window_Closed">
    <Grid>
        <Border BorderThickness="1" HorizontalAlignment="Right" Height="130" VerticalAlignment="Top" Width="170" Margin="0,42,188,0" CornerRadius="5" Background="#FF32A4D6">
        	<my:KinectDepthViewer HorizontalAlignment="Center" Margin="0" x:Name="kinectDepthViewer1" Width="160" Kinect="{Binding Kinect, ElementName=kinectSensorChooser1}" VerticalAlignment="Center" />
        </Border>
        <Border BorderThickness="1" Height="475" VerticalAlignment="Top" Margin="12,42,367,0" CornerRadius="5" Background="#FF32A4D6">
        	<my:KinectColorViewer Margin="0" x:Name="kinectColorViewer1" VerticalAlignment="Center" Height="475" Kinect="{Binding Kinect, ElementName=kinectSensorChooser1}" HorizontalAlignment="Center" />
        </Border>
        <ToolBar Band="1" BandIndex="1" VerticalAlignment="Top" Margin="0">
        	<Button Content="Set Kinect Angle" FontSize="10" Height="22" HorizontalAlignment="Right" x:Name="button1" VerticalAlignment="Top" Width="161" Click="button1_Click" Background="#FF562373" Foreground="White" FontFamily="Segoe UI Mono" />
        	<Button Content="About" FontSize="10" Height="22" HorizontalAlignment="Right" x:Name="button2" VerticalAlignment="Top" Width="161" Background="#FF562373" Foreground="White" FontFamily="Segoe UI Mono" />
        </ToolBar>
        <ToolBarTray Height="30                      " x:Name="toolBarTray1" Width="712" VerticalAlignment="Top" Background="#FF622B82" d:IsHidden="True" Visibility="Hidden" Margin="148,0"/>
        <Border BorderThickness="1" Height="30" VerticalAlignment="Bottom" Margin="11,0,369,8" CornerRadius="5" Background="#FF622B82">
        	<TextBlock Name="logText" TextWrapping="Wrap" Text=" " VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="16" Foreground="White" FontFamily="Segoe UI Mono"/>
        </Border>
        <my:KinectSkeletonViewer HorizontalAlignment="Left" x:Name="kinectSkeletonViewer1" VerticalAlignment="Top" Height="464.239" Width="620" Kinect="{Binding Kinect, ElementName=kinectSensorChooser1}" Margin="13,46,0,0" />
        <TextBox HorizontalAlignment="Right" Margin="0,188,8.063,226" TextWrapping="Wrap" Width="349.937" Name="logBlock" VerticalScrollBarVisibility="Visible"/>
        <my:KinectSensorChooser HorizontalAlignment="Left" Margin="157,184,0,203.856" x:Name="kinectSensorChooser1" Width="328" d:LayoutOverrides="HorizontalAlignment, Height" />
        <Border BorderThickness="1" HorizontalAlignment="Right" Width="353" Margin="0,0,7,11" Height="206" VerticalAlignment="Bottom" Background="#FF32A4D6" CornerRadius="15"/>
        <TextBox HorizontalAlignment="Right" Height="23" Width="229" Margin="0,386,100,159" Text="C:\\Kinect Data\\" IsEnabled="False" Name="pathText"/>
        <TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" Margin="0,0,267.54,72" VerticalAlignment="Bottom" Foreground="White"><Run Text="Gestures By :"/></TextBlock>
        <TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" Text="Gesture Name :" VerticalAlignment="Bottom" Margin="0,0,266.22,102" Foreground="White"/>
        <TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" Text="Gesture No :" VerticalAlignment="Bottom" Margin="0,0,266.54,129" Foreground="White"/>
        <TextBox HorizontalAlignment="Right" TextWrapping="Wrap" VerticalAlignment="Bottom" Margin="0,0,21.446,125" Width="229.553" Name="gestureNoBlock"/>
        <TextBox HorizontalAlignment="Right" TextWrapping="Wrap" VerticalAlignment="Bottom" Margin="0,0,20.446,97" Width="229.553" Name="gestureNameBlock"/>
        <TextBox HorizontalAlignment="Right" TextWrapping="Wrap" VerticalAlignment="Bottom" Margin="0,0,20.446,66" Width="229.553" Name="gestureByBlock"/>
        <Button x:Name="recButton" Content="Record" HorizontalAlignment="Right" Margin="0,0,19,35" VerticalAlignment="Bottom" Width="165" Click="Button_Click" Style="{DynamicResource MyButton}" Height="22" Background="#FF32A4D6" BorderBrush="White" Foreground="White" />
        <Button x:Name="folderButton" Content="Select" HorizontalAlignment="Right" Margin="0,0,19,161" VerticalAlignment="Bottom" Width="76" Click="folderButton_Click" Style="{DynamicResource MyButton}" Height="22.909" Background="#FF32A4D6" Foreground="White" BorderBrush="White" />
        <Border BorderThickness="1" HorizontalAlignment="Right" Height="130" VerticalAlignment="Top" Width="170" Margin="0,42,14,0" CornerRadius="5" Background="#FF32A4D6">
        	<my:KinectColorViewer Kinect="{Binding Kinect, ElementName=kinectSensorChooser1}" Margin="0" Width="160" HorizontalAlignment="Center" VerticalAlignment="Center" />
        </Border>
        <Button Name="trainButton" Content="Back" Height="23" HorizontalAlignment="Left" Margin="740,511,0,0" VerticalAlignment="Top" Width="75" Click="trainButton_Click" Style="{DynamicResource MyButton}" Background="#FF32A4D6" BorderBrush="White" Foreground="White" />
        <TextBlock x:Name="overlayText" HorizontalAlignment="Center" Margin="13,472.718,369,52.718" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="32" IsEnabled="False" Foreground="White" Background="#33000000" ScrollViewer.VerticalScrollBarVisibility="Disabled" RenderTransformOrigin="0.5,0.5" Width="626"/>
    </Grid>
</Window>
